package com.example.merchant.entity;

/**
 * 用户实体类
 */
public class User {

    private Integer id;//用户ID
    private String name;//姓名
    private String sex;//性别
    private Integer age;//年龄
    private Double money;//钱

    /*
    Alt + Insert 快捷键可以快速生成构造方法、Getter and Setter。
    后续还可以引入 Lombok 组件，省略掉这些繁琐步骤
     */

    public User(Integer id, String name, String sex, Integer age, Double money) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.money = money;
    }

    public User() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }
}
